﻿@using KRM.Core
@model KRM.Core.tblKRMRefundQuestion 
@{
    var title = Model.RefundQuestionText;
    if (title.Length > 30)
    {
        title = title.Insert(title.LastIndexOf('b') - 1, "\n");
    }
    var check = Model.RefundQuestionData;
    var answer = ViewBag.Answer as tblKRMRefundAnswer;
}

<div class="row-fluid">
    <div class="span1"></div>
    <div class="span10">
        <fieldset>
            <legend class="bold">@title</legend>
            <div class="row-fluid">
                <div class="span2 bold">
                    <label>
                        <input type="radio" class="cbcheck" name="check@(Model.RefundQuestionID)" value="@check.Split('|')[1]" @(answer.RefundAnswers == check.Split('|')[1] ? "checked=checked" : "") />
                        @check.Split('|')[1]</label>
                </div>
                <div class="span2 bold">
                    <label>
                        <input type="radio" class="cbcheck" name="check@(Model.RefundQuestionID)" value="@check.Split('|')[2]" @(answer.RefundAnswers == check.Split('|')[2] ? "checked=checked" : "") />
                        @check.Split('|')[2]</label>
                </div>
            </div>
        </fieldset>
    </div>
</div>
